<?

echo "MODIFY MODE :" 	.$_SESSION["modify_mode"]. "<br/>\n";

if($_SESSION["modify_mode"] == "Y"){

	$status_of_write="Modify";
}else{

	$status_of_write="Confirm";
}

require("entry_header_html.php");

/**
* Detail goes here
*
*/
echo  "<table border='1' class='dedeq'>\n".
      "<tr>\n".

      "<th> No                        </th>\n".

      "<th> Account <br/> Sub Account </th>\n".

      "<th> Description               </th>\n".

      "<th> Amount                    </th>\n".

      "<th> Net                       </th>\n".

      "</tr>\n";

for($iRow = 0; $iRow < $_SESSION["init_num"]; $iRow++){

  echo  "<tr>\n".

        "<td> ".($iRow + 1)." </td>\n".

        "<td> <table border=0>
              <tr>

              <td> ".$GHtml->formInput("glAccEnt[".$iRow."]",
                                       $_POST["glAccEnt"][$iRow],
                                       $Misc->stdProperties().
                                       _MODE_READONLY)." </td>

              <td> ".$GHtml->formInput("glAccCodeEnt[".$iRow."]",
                                       $_POST["glAccCodeEnt"][$iRow],
                                       $Misc->stdNumStyle(5).
                                       $Misc->stdProperties().
                                       _MODE_READONLY)." </td>

              <td> ".$GHtml->formInput("glSubAccEnt[".$iRow."]",
                                       $_POST["glSubAccEnt"][$iRow],
                                       $Misc->stdProperties().
                                       _MODE_READONLY)." </td>

              <td> ".$GHtml->formInput("glSubAccCodeEnt[".$iRow."]",
                                       $_POST["glSubAccCodeEnt"][$iRow],
                                       $Misc->stdNumStyle(10).
                                       $Misc->stdProperties().
                                       _MODE_READONLY)." </td>

              </tr>
              </table></td>\n".

      "<td> ".$GHtml->formInput("descpEnt[".$iRow."]",
                                $_POST["descpEnt"][$iRow],
                                $Misc->stdStyle(50).
                                $Misc->stdProperties().
                                _MODE_READONLY)." </td>\n".

      "<td> ".$GHtml->formInput("amountEnt[".$iRow."]",
                                $_POST["amountEnt"][$iRow],
                                $Misc->stdNumStyle100().
                                $Misc->stdProperties().
                                _MODE_READONLY)." </td>\n".

      "<td> ".$GHtml->formInput("netEnt[".$iRow."]",
                                $_POST["netEnt"][$iRow],
                                $Misc->stdNumStyle100().
                                $Misc->stdProperties().
                                _MODE_READONLY)." </td>\n".

      "</tr>\n";
}

echo  "<tr>\n".

      "<td ".$GHtml->rowColSpan( 1, 2)." align='center'><b> TOTAL </b></td>\n".

      "<td name='txButton' align='center'> </td>\n".

      "<td> ".$GHtml->formInput("totAmount",
                                $_POST["totAmount"],
                                $Misc->stdNumStyle100().
                                $Misc->stdProperties().
                                _MODE_READONLY)." </td>\n".

      "<td> ".$GHtml->formInput("totNet",
                                $_POST["totNet"],
                                $Misc->stdNumStyle100().
                                $Misc->stdProperties().
                                _MODE_READONLY)." </td>\n".

      "</tr>\n".
      "</table><br/>\n";

echo  $GJs->jsScript("","Misc.setSuppCst(\"typeEnt\",
                                         \"supplierCustomer\");
                         Ajax.setButton(\"txEnt\",
                                        \"txButton\");");

echo 	$GHtml->formInputButton("Save",
                              "confirm",
                              "Confirm",
                              $stlButton).

			$GHtml->formInputButton("Back",
                              "back",
                              "Back",
                              $stlButton).

  		"</form>	\n";

?>